cmake_minimum_required(VERSION 3.9)
project(RandomSequence)

set(CMAKE_CXX_STANDARD 11)

if("^${CMAKE_SOURCE_DIR}$" STREQUAL "^${PROJECT_SOURCE_DIR}$")
    add_executable(${PROJECT_NAME} main.cpp RandomSequence.cpp)
else()
    add_library(${PROJECT_NAME} SHARED RandomSequence.cpp)
endif()
target_include_directories(${PROJECT_NAME} PUBLIC INCLUDE)